package biology;

public class monster {
    private String name;
    private int healthPoint;
    private String action;
    private int hit;

    public monster() {
    }

    public monster(String name, int healthPoint, String action, int hit) {
        this.name = name;
        this.healthPoint = healthPoint;
        this.action = action;
        this.hit = hit;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public int getHealthPoint() {
        return Math.max(healthPoint,0);
    }
    public void setHealthPoint(int healthPoint) {
        this.healthPoint = healthPoint;
    }

    public String getAction() {
        return action;
    }
    public void setAction(String action) {
        this.action = action;
    }

    public int getHit() {
        return hit;
    }
    public void setHit(int hit) {
        this.hit = hit;
    }

}
